package com.yuqingsong.util;

public class Cost {
	
	static public long cost(Callback<? extends Object> cb){
		long start = System.currentTimeMillis();
		cb.callback(null);
		return System.currentTimeMillis()-start;
	}

}
